package com.xy.servicemanage.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.servicemanage.ServicesAll;
import com.ruoyi.common.core.mapper.servicemanager.ServicesAllMapper;
import com.xy.servicemanage.service.IServicesAllService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 全部服务Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-05
 */
@Service
public class ServicesAllServiceImpl implements IServicesAllService
{
    @Autowired
    private ServicesAllMapper servicesAllMapper;

    /**
     * 查询全部服务
     *
     * @param id 全部服务主键
     * @return 全部服务
     */
    @Override
    public ServicesAll selectServicesAllById(Long id)
    {
        return servicesAllMapper.selectServicesAllById(id);
    }

    /**
     * 查询全部服务列表
     *
     * @param servicesAll 全部服务
     * @return 全部服务
     */
    @Override
    public List<ServicesAll> selectServicesAllList(ServicesAll servicesAll)
    {
        return servicesAllMapper.selectServicesAllList(servicesAll);
    }

    /**
     * 新增全部服务
     *
     * @param servicesAll 全部服务
     * @return 结果
     */
    @Override
    public int insertServicesAll(ServicesAll servicesAll)
    {
        return servicesAllMapper.insertServicesAll(servicesAll);
    }

    /**
     * 修改全部服务
     *
     * @param servicesAll 全部服务
     * @return 结果
     */
    @Override
    public int updateServicesAll(ServicesAll servicesAll)
    {
        return servicesAllMapper.updateServicesAll(servicesAll);
    }

    /**
     * 删除全部服务信息
     *
     * @param id 全部服务主键
     * @return 结果
     */
    @Override
    public int deleteServicesAllById(Long id)
    {
        return servicesAllMapper.deleteServicesAllById(id);
    }
}
